package com.mrent.web.form;

import java.util.ArrayList;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

public class GoodsForm {
	
	private MultipartFile goodsThumbFile;


	public void setGoodsThumbFile(MultipartFile goodsThumbFile) {
		this.goodsThumbFile = goodsThumbFile;
	}



	public MultipartFile[] getFiles() {
		List<MultipartFile> files = new ArrayList<MultipartFile>();
		if (goodsThumbFile != null) {
			files.add(goodsThumbFile);
		}
		return files.toArray(new MultipartFile[files.size()]);
	}

}
